package com.bajiao.service.system.impl;

import com.bajiao.entity.system.AnnouncementSend;
import com.bajiao.mapper.system.AnnouncementSendMapper;
import com.bajiao.service.system.IAnnouncementSendService;
import com.bajiao.vo.system.AnnouncementVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 用户通告阅读标记表
 * @Author: FanJq
 * @Date:   2024-07-28
 * @Version: V1.0
 */
@Service
public class AnnouncementSendServiceImpl extends ServiceImpl<AnnouncementSendMapper, AnnouncementSend> implements IAnnouncementSendService {
    @Autowired
    private AnnouncementSendMapper announcementSendMapper;


    /**
     * 系统消息列表
     * @param userId
     * @return
     */
    @Override
    public List<AnnouncementVO> getByUserIdList(String userId) {
        return announcementSendMapper.getByUserIdList(userId);
    }

    @Override
    public void updateByIds(String id) {
        announcementSendMapper.updateByIds(id);
    }
}
